package com.guicent.geekai.client;


import com.guicent.geekai.config.FeignConfig;
import com.guicent.geekai.entity.dto.GeekAiRequestDTO;
import com.guicent.geekai.entity.vo.GeekAiResponseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * geek ai客户端
 *
 * @author xiaojiang
 * @date 2025/03/17
 */
@FeignClient(name = "geekai", url = "${geekai.api-url}", configuration = FeignConfig.class)
public interface GeekAiClient {
    @PostMapping("/chat/completions")
    ResponseEntity<String> chat(@RequestBody GeekAiRequestDTO request);
}
